<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天高智慧</title>
<link href="./res/style/main.css" rel="stylesheet" type="text/css" />
<link href="./res/style/index.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="./res/script/jquery-1.4.2.min.js"></script>
<style>body {
background: none;
}</style>
<script>

$(function(){
    $('.fl > a').click(function(){
        var tag_a = $(this);
        $('a').removeClass('a_now');
        tag_a.addClass('a_now');
    });
    $('a[label=leftmenu_open]').click(function(){
        var current_state = $(this).attr('rel');
        if (current_state == 'open')
        {
            $(this).attr('rel','close');
            $(this).html('打开左侧菜单');
            window.parent.frames["leftFrame"].display = 'none';
        } else {
            $(this).attr('rel','open');
            $(this).html('关闭左侧菜单');
            $('#leftFrame',window.parent.document).css('display','block');
        }
    });
	
	
	$('a[id=clear]').click(function(){
        $.post("?app=setting&mod=cache",'clear=all',function(data){
				if (data.state <= 0)
            	{
                	alert(data.message);
                	return false;
            	}
			 	alert(data.message);
			},'json');
			return false;
    });
});
</script>
</head>
<style>
body{background:url(./res/image/header_bg.gif);}
</style>

<body>
<div class="top">
      <div class="header">
           <div class="div0"><a href="?app=message&mod=message" target="mainFrame">留言信息</a>|<a href="index.php" target="_blank" >查看网站</a></div>
           <div class="div1">
                 <a href="?" target="_top">刷新</a>
                 <a href="#" id="clear">清除缓存</a>
                 <a href="?app=portal&mod=modi_password" target="mainFrame">修改密码</a>
                 <a href="?app=auth&mod=signout" target="_top">退出</a>
           </div>
      </div>
      <div class="nav">
           <div class="fl" id="navigator">
                 <a href="?" target="_top" class="a_now">起始页</a><?php foreach((array)$this->menus as $menu): ?><a href="?app=frame&mod=left&id=<?php echo $menu['menu_id']; ?>" target="leftFrame"><?php echo $menu['name']; ?></a><?php endforeach; ?>
           </div>
           <div class="fr">用户名：<a href="#"><?php echo $this->user['username']; ?></a>　　用户组：<?php echo $this->user['group_name']; ?></div>
      </div>
</div>
</body>
</html>
